package com.yn.pet.protocol.t808.extend;

import com.yn.pet.protocol.basics.JTMessage;
import com.yn.pet.protocol.commons.JT808;
import io.github.yezhihao.netmc.core.model.Response;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;

/**
 * @ClassName: T8109
 * @Description: 请求同步时间应答
 * @Author: DarkRainer
 * @Date: 2025/6/21 0:10
 **/
@Message({JT808.请求同步时间应答})
public class T8109 extends JTMessage implements Response {

    @Field(length = 2, desc = "年份")
    private int year;
    @Field(length = 1, desc = "月")
    private int month;
    @Field(length = 1, desc = "日")
    private int day;
    @Field(length = 1, desc = "时")
    private int hour;
    @Field(length = 1, desc = "分")
    private int minute;
    @Field(length = 1, desc = "秒")
    private int second;

    @Field(length = 1, desc = "结果：0.成功 1.失败 2.消息有误 3.不支持 4.报警处理确认")
    private int resultCode;
    public int getYear() {
        return year;
    }
    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }



    @Override
    public int getResponseSerialNo() {
        return 0;
    }
}
